import unittest

from api.Ihrm_Api import Ihrm_Test_Api
from config import abs_path
from tools.ihtm_tools import assrt, get_data
from parameterized import parameterized

list=get_data(abs_path+"/data/delete.json")


class Test_delete_department(unittest.TestCase):
    @parameterized.expand(list)
    def test_delete(self,data,success,code,message):

        result=Ihrm_Test_Api.delete_department(data)

        assrt(self,result,success,code,message)
